using System;
using System.Collections.Generic;
using System.Linq;

namespace AltNetHispano.Vale
{
	public static class EnumerableExtensions
	{
		public static IEnumerable<string> GetNotEmptyStrings(this IEnumerable<string> source)
		{
			if (source == null)
			{
				throw new ArgumentNullException("source");
			}
			return source.Where(message => !string.IsNullOrEmpty(message));
		}
	}
}